package com.ssyt.ssh.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.ssh.sys.dao.ArticleDao;
import com.ssyt.ssh.sys.entity.Article;
import com.ssyt.ssh.sys.service.ArticleService;

@Service
public class ArticleServiceImpl implements ArticleService {

	@Autowired
	private ArticleDao articleDao;

	@Override
	public List<Article> listTitle() {
		return articleDao.listTitle();
	}

	@Override
	public List<Article> listOne(Integer userId) {
		return articleDao.listOne(userId);
	}

	@Override
	public List<Article> listArticle() {
		return articleDao.listArticle();
	}

}
